//
//  AppDelegate.h
//  shezhan
//
//  Created by admin on 16/8/10.
//  Copyright © 2016年 haoniu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
#import "HNMainController.h"
#import "MainViewController.h"
#import "ApplyViewController.h"
#import "LoginViewController.h"


#import "AGGNavigationController.h"
#import "AGGTabViewController.h"

#define NSFoundationVersionNumber_iOS_9_x_Max

@protocol AppCustomDelegate <NSObject>

@optional
//支付回调
-(void)PingPayCallBack:(BOOL)bol;

@end

@interface AppDelegate : UIResponder <UIApplicationDelegate,EMChatManagerDelegate>{
    EMConnectionState _connectionState;
}

@property (strong, nonatomic) UIWindow *window;

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;

@property (nonatomic , strong) AGGNavigationController *navigationController;

@property (strong, nonatomic) LoginViewController * login;
@property (strong, nonatomic) AGGTabViewController * mainController;

//代理
@property (nonatomic,retain) id<AppCustomDelegate> appCustomDelegate;


////代理
//@property (nonatomic,retain) id<AppShoppingDelegate> appShoppingDelegate;


@end

